package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.adapter.SetTagAdapter;
import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.market.wallet.charge.ChargeActivity;
import com.kelvin.paopao.module.market.wallet.charge.IWalletChargePresenter;
import com.kelvin.paopao.module.market.wallet.charge.WalletChargePresenter;
import com.kelvin.paopao.module.person.tagset.SetTagActivity;
import com.kelvin.paopao.module.person.tagset.SetTagPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by MCK on 2017/5/23.
 */

@Module
public class SetTagModule {
    private SetTagActivity mView;

    public SetTagModule(SetTagActivity view) {
        this.mView = view;
    }

    @PerActivity
    @Provides
    public SetTagPresenter providePresenter() {
        return new SetTagPresenter(mView);
    }

    @PerActivity
    @Provides
    public SetTagAdapter provideAdapter() {
        return new SetTagAdapter(mView);
    }
}
